package xlog

import (
	"os"
	"log"
)

var (
	Info = log.New(os.Stdout, "[Info]", log.Llongfile)
	Warn = log.New(os.Stdout, "[Warn]", log.Llongfile)
	Error = log.New(os.Stdout, "[Error]", log.Llongfile)
)

type I interface {
	Info ()*log.Logger
	Warn ()*log.Logger
	Error ()*log.Logger
}

func Setup()  {
	Info.SetFlags(log.Ldate | log.Ltime)
	Warn.SetFlags(log.Ldate | log.Ltime | log.Llongfile)
	Error.SetFlags(log.Ldate | log.Ltime | log.Llongfile)
}